package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import com.qijian.maindata.domain.Store;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("fm_store")
public class StoreQuery extends Store {
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;

    @WhereType(filed = "code", type = WhereTypeEnum.LIKE)
    private String code;

    @WhereType(filed = "name", type = WhereTypeEnum.LIKE)
    private String name;

    @WhereType(filed = "store_keeper", type = WhereTypeEnum.LIKE)
    private String storeKeeper;

    @WhereType(filed = "name", type = WhereTypeEnum.EQ)
    private String nameEq;

    @WhereType(filed = "organization_name", type = WhereTypeEnum.EQ)
    private String organizationNameEq;
}
